class Pet {
  final int petType;
  final String name;
  final String engName;
  final String characters;
  final String nation;
  final String easyOfDisease;
  final String life;
  final String price;
  final String desc;
  final String feature;
  final String characterFeature;
  final String careKnowledge;
  final String feedPoints;
  final String url;
  final String coverURL;

  Pet({
    required this.petType,
    required this.name,
    required this.engName,
    required this.characters,
    required this.nation,
    required this.easyOfDisease,
    required this.life,
    required this.price,
    required this.desc,
    required this.feature,
    required this.characterFeature,
    required this.careKnowledge,
    required this.feedPoints,
    required this.url,
    required this.coverURL,
  });

  factory Pet.fromJson(Map<String, dynamic> json) {
    return Pet(
      petType: json['pettype'],
      name: json['name'],
      engName: json['engName'],
      characters: json['characters'],
      nation: json['nation'],
      easyOfDisease: json['easyOfDisease'],
      life: json['life'],
      price: json['price'],
      desc: json['desc'],
      feature: json['feature'],
      characterFeature: json['characterFeature'],
      careKnowledge: json['careKnowledge'],
      feedPoints: json['feedPoints'],
      url: json['url'],
      coverURL: json['coverURL'],
    );
  }
}
